package org.foundation.jala.jamerzip.components;

public class JamerZip implements Jamer {
    public static final String JAMERZIP_LIBRARY = "jamerzip";

    @Override
    public int doCompress(String[] sourcePath, String targetPath) {
    	return compress(sourcePath, targetPath);
    }


	@Override
	public int doDecompress(String sourcePath, String targetPath) {
		return decompress(sourcePath, targetPath);
	}

	@Override
	public boolean doCheckIntegrity(String sourcePath) {
		return checkIntegrity(sourcePath);
	}

	@Override
	public JamerElement[] doReadZipToNavigate(String path) {
		return readZipToNavigate();
	}
    public  native int compress(String[] sourcePath, String targetPath);

    public  native int decompress(String sourcePath, String targetPath);

    public  native boolean checkIntegrity(String sourcePath);

    public  native JamerElement[] readZipToNavigate();
    
    static {
        System.loadLibrary(JAMERZIP_LIBRARY);
    }
}
